<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>仓颉倒数计时器</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>仓颉倒数计时器</h1>
            <p>输入目标日期和时间，开始倒计时</p>
        </div>
        
        <div class="settings">
            <div class="input-group">
                <label for="target-date">目标日期：</label>
                <input type="date" id="target-date">
            </div>
            <div class="input-group">
                <label for="target-time">目标时间：</label>
                <input type="time" id="target-time">
            </div>
            <div class="input-group">
                <label for="event-name">事件名称（可选）：</label>
                <input type="text" id="event-name" placeholder="例如：新年、生日等">
            </div>
            <button id="start-btn" class="btn">开始倒计时</button>
            <button id="reset-btn" class="btn btn-secondary">重置</button>
        </div>
        
        <div id="countdown-container" class="hidden">
            <div class="event-title" id="event-title"></div>
            <div class="countdown" id="countdown">
                <div class="time-box">
                    <div class="number" id="days">00</div>
                    <div class="label">天</div>
                </div>
                <div class="time-box">
                    <div class="number" id="hours">00</div>
                    <div class="label">时</div>
                </div>
                <div class="time-box">
                    <div class="number" id="minutes">00</div>
                    <div class="label">分</div>
                </div>
                <div class="time-box">
                    <div class="number" id="seconds">00</div>
                    <div class="label">秒</div>
                </div>
            </div>
            <div class="message" id="message"></div>
        </div>
    </div>
    
    <script src="js/script.js"></script>
</body>
</html>